<?php
	include "../../public/commom/config.php";
	include "../lock1.php";	
	
	if($_POST) {
		$id = $_POST["id"];
		$username = $_POST["username"];
		$password = $_POST["password"];
	
		$sql = "UPDATE user SET username = '$username', password = '$password' WHERE id = $id";
			
		$result = mysqli_query($conn, $sql);
		
		mysqli_close($conn);
			
		header("Location: ./index.php");
		
	}
?>